package array;

import java.util.Arrays;

public class ArraySort {

	public static void main(String[] args) {
		Object [] myObjects = {
				new Integer(12),
				new String("foo"),
				new Integer(5),
				new Boolean(true)
				};
		Arrays.sort(myObjects);
		for( int i=0; i < myObjects.length; i++) 
			System.out.print(myObjects[i].toString());
/*
Sorts the specified array of objects into ascending order, 
according to the natural ordering of its elements. All 
elements in the array must implement the Comparable interface. 
Furthermore, all elements in the array must be mutually comparable 
(that is, e1.compareTo(e2) must not throw a ClassCastException 
for any elements e1 and e2 in the array).
*/
	}
	
}
